package com.web_bloks.widget.client.impl;

import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.Widget;
import com.web_bloks.widget.client.ImgAnchor;

/**
 * 
 * @author Jean-Lou Dupont
 *
 */
public class ImgAnchorImplIE6 extends ImgAnchorImpl implements ClickListener {

	ImgAnchor source = null;
	
	public ImgAnchorImplIE6() {
	}
	
	public void setup(ImgAnchor source) {
		
		this.source = source;
		source.addClickListener( this );
		
		source.getElement().getStyle().setProperty("cursor", "hand");
	}

	/**
	 * 
	 */
	public void onClick(Widget sender) {
		Window.Location.assign( source.getHref() );			
	}
	
}//END